<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="st" uri="/as-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'attendanceDetail.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<s:head />

	</head>


	<body>
		<jsp:include page="head.jsp"></jsp:include>
		<div class="content">
			<h1>
				考勤详请查询
			</h1>
			
				<s:form action="viewAttendanceDetail" theme="simple">
					<input type="hidden" name="studentId"
						value="<s:property value='studentId'/>" />
					<input type="hidden" name="courseId"
						value="<s:property value='courseId'/>" />
	起始时间<s:datetimepicker name="startTime" type="date"
						displayFormat="yyyy-MM-dd" displayWeeks="5" />
	结束时间<s:datetimepicker name="endTime" type="date"
						displayFormat="yyyy-MM-dd" displayWeeks="5" />
					<s:submit value="查询" />
				</s:form>
				<table align="center">
					<tr>

						<td>
							日期
						</td>
						<td>
							签到时间
						</td>
						<td>
							签出时间
						</td>
					</tr>
					<s:iterator value="list" id="list">
						<tr>

							<td>
								<s:date name="date" format="yyyy-MM-dd" />
							</td>
							<td>
								<s:property value="signIn" />
							</td>
							<td>
								<s:property value="signOut" />
							</td>
						</tr>
					</s:iterator>
				</table>

				<st:pageCode
					url="viewAttendanceDetail.action?studentId=${studentId}&courseId=${courseId}&startTime=${startTime}&endTime=${endTime}&pageNo=:pageNo"
					maxPageNo="${maxPageNo}" currentPageNo="${pageNo}" />
			</div>
		
	</body>
</html>
